package com.baizhi.controller;

import com.baizhi.entity.CmfzMenu;
import com.baizhi.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2019/4/3 0003.
 */
@Controller
@RequestMapping("/menu")
public class CmfzMenuController {
    @Autowired
    private CmfzMenuService cmfzMenuService;

    @RequestMapping("/queryMenu")
    public @ResponseBody  List<CmfzMenu> queryMenu(){
        List<CmfzMenu> cmfzMenus = cmfzMenuService.queryMenu();
        return cmfzMenus;
    }
}
